package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmNewsDownOrUpDto;
import com.heima.model.wemedia.dtos.WmNewsDto;
import com.heima.model.wemedia.dtos.WmNewsQueryDto;
import com.heima.model.wemedia.pojos.WmNews;

public interface WmNewsService extends IService<WmNews> {
    ResponseResult submit(WmNewsDto dto);

    ResponseResult listPage(WmNewsQueryDto dto);

    ResponseResult getOneNews(Integer id);

    ResponseResult delNewsById(Integer id);

    ResponseResult downOrUp(WmNewsDownOrUpDto dto);
}
